package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.Schedule;
import com.example.demo.pojo.UserLike;
import com.example.demo.pojo.Word;
import com.example.demo.pojo.getWords;

import java.util.List;

/**
 * @author luolinila
 */
public interface WordsMapper extends BaseMapper<Word> {
    Word selectWordsBySpell(String spell);
    Integer selectLearn(Schedule schedule);
    Integer selectReview(Schedule schedule);
    Integer updateSchedule(Schedule schedule);
    void insertSchedule(Schedule schedule);
    List<Word> getWords(getWords getwords);
    List<Integer> getUserLike(Integer userId);
    void addUserLike(UserLike userLike);
    void deleteUserLike(UserLike userLike);
    int getWordCollection(Integer wordId);
    void insertWordCollection(Integer wordId, Integer collection);
    List<UserLike> selectWordCollection(Integer wordId);
    List<Integer> selectBookAllWords(String bookName);
}